import Vue from 'vue'
import VueRouter from 'vue-router'
import Add from '../views/AddSubject.vue';
import User from '../views/User.vue';


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/add'
  },
  {
    path: '/add',
    name: 'Add',
    component: Add
  },
  {
    path: '/user',
    name: 'User',
    component: User
  },
]

const router = new VueRouter({
  routes
})

export default router
